package com.aspose.cells;

class zbis extends zck {
   zbis(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var2 = new com.aspose.cells.b.a.b.a.ze();
      float var3;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var3 = Math.min(var1.h(), var1.i()) * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var3 = Math.min(var1.h(), var1.i()) * 0.23958F;
         }
      } else {
         var3 = Math.min(var1.h(), var1.i()) * 0.23958F;
      }

      if (var3 <= 0.0F) {
         var2.b(var1);
         var2.i();
         return var2;
      } else {
         com.aspose.cells.b.a.b.zo[] var4 = new com.aspose.cells.b.a.b.zo[4];
         switch(this.e.b) {
         case 1:
            var4[0] = new com.aspose.cells.b.a.b.zo(var3 + this.g, this.h);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() - var3 + this.g, var1.i() + this.h);
            var4[3] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
            break;
         case 2:
            var4[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() - var3 + this.g, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
            var4[3] = new com.aspose.cells.b.a.b.zo(var3 + this.g, var1.i() + this.h);
            break;
         case 3:
            var4[0] = new com.aspose.cells.b.a.b.zo(var3 + this.g, this.h);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() - var3 + this.g, var1.i() + this.h);
            var4[3] = new com.aspose.cells.b.a.b.zo(this.g, var1.i() + this.h);
            break;
         case 4:
            var4[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
            var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() - var3 + this.g, this.h);
            var4[2] = new com.aspose.cells.b.a.b.zo(var1.h() + this.g, var1.i() + this.h);
            var4[3] = new com.aspose.cells.b.a.b.zo(var3 + this.g, var1.i() + this.h);
         }

         var2.a(var4[0], var4[1]);
         var2.a(var4[1], var4[2]);
         var2.a(var4[2], var4[3]);
         var2.a(var4[3], var4[0]);
         var2.i();
         return var2;
      }
   }

   void a() {
      com.aspose.cells.b.a.b.zq var1 = this.e.v();
      if (!this.e.x().a()) {
         var1.a(-(this.e.x().f() / 2.0F), -(this.e.x().f() / 2.0F));
      }

      float var2 = this.e.v().h() / 4.0F;
      float var3 = zbum.a(this.e.y());
      if (this.e.A() != 7 && this.e.A() != 9) {
         if (this.e.A() == 0 || this.e.A() == 8) {
            var1.c(var1.h() - (var3 + var2));
         }
      } else {
         var1.a(var1.f() + var3 + var2);
      }

      if (!this.e.G().equals("\n")) {
         zbum.a(this.a, this.e, var1, this.e.G(), this.e.D(), this.e.y(), this.e.z(), this.e.A(), this.e.B(), this.e.C());
      }
   }
}
